package com.njegovanobradovic.pages.admin;

import java.util.List;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.njegovanobradovic.entities.SocialNetwork;
import com.njegovanobradovic.so.GetAll;

public class AllNetworks {
	@Inject
	private GetAll<SocialNetwork> getAllNetworks;
	@Property
	private SocialNetwork network;
	
	public List<SocialNetwork> getNetworkList(){
		getAllNetworks.setSearchForType(SocialNetwork.class);
		return getAllNetworks.execute();
	}
}
